html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, code, img, b, small, label,
i, dl, dt, dd, ol, ul, li, form, time, strong, aside, canvas, footer, header,
nav, section, article, input{
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Helvetica Neue", Helvetica, STHeiTi, Roboto, sans-serif;
    vertical-align: baseline;
    -webkit-text-size-adjust:none;
    -webkit-touch-callout: none; /* 禁止长按链接与图片弹出菜单 */
    text-decoration: none;
}

html{
    font-size: 16px;
}

body {
    line-height: 1;
    background-color: rgba(245,245,245,.4);
    -webkit-overflow-scrolling: touch;
    &:not( .no-padding ){
        padding-top: 73px;
    }
}

ol, ul{
    list-style: none;
}

input, button{
    outline: none;
}

input{
    &::-ms-clear{display: none};
    &::-ms-reveal{display: none};
}

footer{
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 0;
}

@mixin noselect{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@mixin clear{
    &:after{
        content: " ";
        visibility: hidden;
        display: block;
        height: 0;
        clear: both;
    }
}

@mixin numhighlight( $bgColor ){
    color: white;
    background-color: $bgColor;
    padding: 2px 8px;
    @include border-radius( 2px );
}

.hide{
    display: none;
}

.error{
    @include numhighlight( #d9534f );
}

.warning{
    @include numhighlight( #f0ad4e );
}

.success{
    @include numhighlight( #5cb85c );
}

@for $i from 0 to 12{
    .spinner-child#{$i}{
        @include transform2d(rotate( #{( $i * 30 )}deg ) translate(0, -142%));
        @include animation(fade 1.2s infinite ($i+1)*0.1s);
    }
}

.loading-box-small{
    width: 20px;
    height: 20px;
    .se{
        height: 4px;
    }
}

.loading-box-black{
    border: 1px solid #444;
    background-color: #555;
    @include border-radius(3px);
    .se{
        background-color: white;
    }
}
